package cn.itcast;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

@SpringBootApplication
@MapperScan(basePackages = "cn.itcast.user.mapper")
// 声明这个服务使用 Eureka 服务注册中心
//@EnableEurekaClient
// 下面这个注解相对于上面注解可以使用多种服务注册中心 Zookeeper Nacos Eureka等
@EnableDiscoveryClient
public class UserServiceApplication {

    public static void main(String[] args) {

        SpringApplication.run(UserServiceApplication.class);

    }

}
